<template>
<div class="bro">
  <h2>分类：{{title}}</h2>
<!--  1.写法一-->
  <slot></slot>
<!--  2.写法二-->
<!--  <slot name="default"></slot>-->

</div>
</template>

<script>
export default {
  name: "Brother",
  props:['title']
}
</script>

<style scoped>
.bro{
  border: 1px solid #ccc;
  width: 200px;
  height: 400px;
}
</style>